extends Node


var sharks :Array[shark]=[]
var sha_a_count = 0
var score:int = 0
var state= GAME
var gem_count = 0
var gem_count_score = 0
enum {
	GAME,
	NOT_GAME
}

func _process(delta: float) -> void:
	if state==GAME:
		if gem_count == 0:
			print("GAME END")

func active_sha():
	for i in sha_a_count:
		if i<sharks.size():
			sharks[i].act()

func append_sharks(p_sha:shark):
	sharks.push_back(p_sha)

func sort_custom(a,b):
	if a.order < b.order:
		return true
	return false

func sort_sha():
	sharks.sort_custom(Callable(self,"sort_custom"))
